package pl.siejas.timewarper;

import java.util.Calendar;
import java.util.Date;
import java.util.Hashtable;

public class TimeWarperDataController {
	
	public static int FIRST_HOUR = 1;
	public static int LAST_HOUR = 24;
	public static int NUMBER_OF_HOURS_PER_DAY = 24;
	public static int NUMBER_OF_MINUTES_PER_HOUR = 60;
	public static int NUMBER_OF_SECONDS_PER_MINUTE = 60;
	public static int NUMBER_OF_SECONDS_PER_HOUR = 3600;
	public static int NUMBER_OF_MINUTES_PER_DAY = 1440;
	public static int NUMBER_OF_SECONDS_PER_DAY = 86400;
	public static long NUMBER_OF_MILISECONDS_PER_HOUR = 3600000;

	private Hashtable<Integer, Long> wrappedTime = new Hashtable<Integer, Long>(NUMBER_OF_HOURS_PER_DAY+1);
	
	TimeWarperDataController () {
		wrappedTime.put(Integer.valueOf(0), Long.valueOf(0));
		for (Integer hour = FIRST_HOUR; hour <= NUMBER_OF_HOURS_PER_DAY; hour++) {
			wrappedTime.put(hour, Long.valueOf(NUMBER_OF_MILISECONDS_PER_HOUR)*hour);
		}
//		Calendar calendar = Calendar.getInstance();
		
		// load the preferences here
		
	}
	
	public Date warpTheTime(Date old) {
		long time = old.getTime();
		return old;
	}
	
	public Date getCurrentTimeWarped() {
		return null;
	}
}
